<template>
  <div style="margin-top: 5px;">
    <titleBox text="党建力量"></titleBox>
    <div class="content">
      <div class="item" v-for="(item,i) in data" :key="i">
          <div :style="{backgroundImage:'url('+item.icon+')'}" class="icon"></div>
          <div class="type">{{ item.type }}</div>
          <div class="name">{{ item.name }}</div>
      </div>
    </div>
  </div>
</template>
<script setup>
  import { ref } from "vue"
  import titleBox from "../mConponents/titleBox.vue"
  const data = ref([
    {
      icon: "/img/myimg/avatar.png",
      name: "张三",
      type: "网格员"
    },
    {
      icon: "/img/myimg/avatar.png",
      name: "张三",
      type: "网格员"
    },
    {
      icon: "/img/myimg/avatar.png",
      name: "张三",
      type: "网格员"
    }
  ])
</script>
<style scoped lang="less">
  .content {
    padding:20px 20px;
    background-color: #001a1dcc;
    width: 330px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .item{
      width: 25%;
      display: flex;
      flex-direction: column;
      align-items: center;
      .icon{
        width: 50px;
        height: 50px;
        background-size: 50px 50px;
      }
      .name{
        color: rgba(193, 244, 255, 1);
        font-family: PingFang SC;
        font-weight: 600;
        font-size: 11px;
        line-height: 19.6px;
        letter-spacing: 0%;

      }
      .type{

        font-family: PingFang SC;
        font-weight: 400;
        font-size: 9px;
        letter-spacing: 0%;
        color:rgba(255, 255, 255, 1);
        border-radius: 10px;
        margin-top: 5px;

      }
    }
}
</style>
